<template>
  <div class="index">
    <div class="container">
      <div class="con_title">
        <div class="le_img">
          <img src="../assets/image/head.png" alt="" />
        </div>
        <div class="ri_name">
          <p class="name_hed">张小萌</p>
          <p class="name_foo">白云区分公司-服务部</p>
        </div>
      </div>
      <div class="midd_text">珠江数码知识竞赛</div>
      <div class="foor_text">
        <div class="for_enter">
          <div @click="$router.push('/Enter')"><span>进入答题练习</span></div>
        </div>
        <div class="for_box">
          <div class="item" @click="$router.push('/record')">
            <div><img src="../assets/image/le_plan.png" alt="" /></div>
            <div>答题记录</div>
          </div>
          <div class="item" @click="$router.push('/ranking')">
            <div><img src="../assets/image/mi_rity.png" alt="" /></div>
            <div>排行榜</div>
          </div>
          <div class="item" @click="$router.push('/rule')">
            <div><img src="../assets/image/ri_rule.png" alt="" /></div>
            <div>答题规则</div>
          </div>
        </div>
      </div>
      <div class="nav_bom">珠江数码工会委员会</div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  mounted() {
  },
};
</script>
<style lang="scss" scoped>
.index {
  .container {
    color: #fff;
    margin-bottom: 1.6rem;
    .con_title {
      margin: 0rem 1.1rem 2.2rem;
      display: flex;
      align-items: center;
      .le_img {
        width: 4.5rem;
        height: 4.5rem;
        margin-top: 0.8rem;
        border-radius: 50%;
        margin-right: 0.8rem;
      }
      .ri_name {
        font-size: 1.25rem;
        .name_foo {
          font-size: 0.8rem;
          opacity: 0.8;
        }
      }
    }
    .midd_text {
      font-size: 2rem;
      text-align: center;
    }
    .foor_text {
      text-align: center;
      .for_enter {
        margin: 5.8rem 0 1.5rem;
        display: flex;
        justify-content: center;
        div {
          background: url("../assets/image/enter.png");
          width: 18.65rem;
          height: 3.13rem;
        }
        span {
          margin: 0.6rem 0rem 0rem 2.5rem;
          display: inline-block;
          font-size: 1.25rem;
        }
      }
      .for_box {
        display: flex;
        justify-content: center;
        .item:nth-child(2) {
          margin: 0rem 1.7rem;
        }
      }
    }
    .nav_bom {
      text-align: center;
      font-size: 1.1rem;
      position: absolute;
      bottom: 1.7rem;
      left: 50%;
      transform: translateX(-50%);
    }
  }
  @media (max-width: 320px) {
    .container {
      .foor_text {
        .for_enter {
          margin: 2rem 0rem 1.25rem;
        }
      }
      .nav_bom {
        font-size: 0.8rem;
      }
    }
  }
}
</style>
